package com.lmk.mkcc.feign;

import com.lmk.mkcc.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value = "service-user",fallbackFactory = UserServiceFallbackFactory.class)
public interface UserService {
    // 根据ids来进行批量查询
    @RequestMapping(value = "/user/list/{ids}",method = RequestMethod.GET)
    List<User> listByIds(@PathVariable("ids") List<Long> ids);
}
